﻿using CPPEI.Coolzon.DesignServer.Domain;
using CPPEI.Coolzon.DesignServer.Domain.Entities;
using CPPEI.Coolzon.DesignServer.Domain.Repositories;
using CPPEI.Coolzon.DesignServer.Domain.Services;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CPPEI.Coolzon.DesignServer.DomainTest
{
    class Program
    {
        static void Main(string[] args)
        {

          //  FileService.StoreDirectory = "E:\\DomianTest\\"; 

          //  ItemService itemService = new ItemService();
          //  Item item = new Item();
          //  item.Editor ="zyzheng";
          //  item.Id = new Guid("fd66aef9-2510-44f6-a777-cd435faad893"); 
          //  item.IsDeleted = false;
          //  item.IsEditing = false;
          //  item.Name="123";
          //  item.ParentId = Guid.NewGuid();
          //  item.Path="test.txt";
          //  item.SolutionId = new Guid("d12ddcb4-9d98-409d-a787-adee07a108b6");
          //  item.Type= 0;
          //  item.Updatedtime = DateTime.Now;
          //  item.Version=1;




          //  FileStream aFile = new FileStream("E:\\DomianTest\\test.txt", FileMode.OpenOrCreate);
          //  SingleResult<CPPEI.Coolzon.DesignServer.Domain.Entities.Item> serviceResult = itemService.CheckIn("123", item, aFile);

          //if (serviceResult.IsSuccess)
          //{
          //    Console.WriteLine("itemService CheckIn  Success!");
          //}
          //else
          //{
        
          //    Console.WriteLine(string.Format("itemService CheckIn  Error!{0}",serviceResult.ErrorCode));
          //}

          Console.ReadKey();
        }
    }
}
